home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / CD_TOOLS / UPGRADE3.ZIP;1 / UPGRADE.BAT < prev   
Encoding:
DOS Batch File  |  1994-06-09  |  4.7 KB  |  103 lines

  1. cls
  2. @if "%1"=="" goto need_directory 
  3. @echo *********************************************************************
  4. @echo *                                                                   *
  5. @echo *          =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=        *
  6. @echo *          Adaptec EZ-SCSI 3.0, 3.01 to EZ-SCSI 3.02 Upgrade        *
  7. @echo *          =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=        *
  8. @echo *                                                                   *
  9. @echo *         This program will upgrade your EZ-SCSI Software           *
  10. @echo *         (from EZ-SCSI 3.0 or EZ-SCSI 3.01) to EZ-SCSI 3.02.       *
  11. @echo *         The version of EZ-SCSI you have is printed on your        *
  12. @echo *         floppy label.                                             *
  13. @echo *                                                                   *
  14. @echo *         This program will create the directory \OLDSYS where      *
  15. @echo *         the older versions of your software will be stored.       *
  16. @echo *         Consult the READMEUP.TXT file for further information     *
  17. @echo *         on this upgrade program.                                  *
  18. @echo *                                                                   *
  19. @echo *********************************************************************
  20. @rem pause
  21. @rem
  22. @rem ----------------------------------------------------------------------
  23. @rem Note: %1 = user's path for where ezscsi is installed on their drive.
  24. @rem       We redirect the output of the upgrade procedure to the file
  25. @rem       UPINFO.TXT.  
  26. @rem       Currently this file contains nothing more than the header for
  27. @rem       the RTPatch program,  but we can allow it to contain all of the
  28. @rem       information regarding the upgrade procedure by rebuilding the
  29. @rem       patch with NOMESSAGE and QUITE eliminated from the configuration
  30. @rem       set.
  31. @rem -----------------------------------------------------------------------
  32. @echo Performing upgrade...please wait.
  33. @echo (This process may take from 1 to 5 minutes depending on your system.)
  34. @echo ...working...
  35. @rem
  36. @rem
  37. @rem -----------------------------------------------------------------------
  38. @rem   PATCH.EXE and PATCH.RTP, the two files necessary to carry out the
  39. @rem   patch program are renamed to reduce confusion for customer to *.inc.
  40. @rem   Here is where we rename them back to their executable extensions to
  41. @rem   allow the patch to operate.  We rename them back to *.inc at the end
  42. @rem   of this program.
  43. @rem -----------------------------------------------------------------------
  44. @rename patch1.inc patch.exe
  45. @rename patch2.inc patch.rtp
  46. @patch %1 > UPINFO.TXT
  47. @if ERRORLEVEL 1 goto failed_upgrade
  48. @rem -----------------------------------------------------------------------
  49. @rem Here we copy the upgrade readme file to the user's EZ-SCSI directory.
  50. @rem -----------------------------------------------------------------------
  51. @del UPINFO.TXT
  52. @echo Upgrade Complete!
  53. @echo Copying READMEUP.TXT to %1 ...
  54. @copy readmeup.txt %1
  55. @if ERRORLEVEL 1 goto failed_readme_copy
  56. @goto end
  57.  
  58. :need_directory
  59. @cls
  60. @echo **********************************************************************
  61. @echo * You need to type the directory of your current EZ-SCSI installation*
  62. @echo * after PATCH as follows:                                            *
  63. @echo *                                                                    *
  64. @echo *                 UPGRADE C:\SCSI                                    *
  65. @echo *                                                                    *
  66. @echo **********************************************************************
  67. @pause
  68. @goto failed
  69.  
  70. :failed_upgrade
  71. cls
  72. @echo Upgrade failed!
  73. @rem --------------------------------------------------------------------
  74. @rem Renaming patch files back to non-executable extensions
  75. @rem --------------------------------------------------------------------
  76. @rename patch.exe patch1.inc
  77. @rename patch.rtp patch2.inc
  78. @pause
  79. @goto failed
  80.  
  81. :failed_readme_copy
  82. @cls
  83. @echo Upgrade was successful!
  84. @echo Unable to copy READMEUP.TXT to %1
  85. @rem --------------------------------------------------------------------
  86. @rem Renaming patch files back to non-executable extensions
  87. @rem --------------------------------------------------------------------
  88. @rename patch.exe patch1.inc
  89. @rename patch.rtp patch2.inc
  90. @goto failed
  91.  
  92. :end
  93. @rem --------------------------------------------------------------------
  94. @rem Renaming patch files back to non-executable extensions
  95. @rem --------------------------------------------------------------------
  96. @rename patch.exe patch1.inc
  97. @rename patch.rtp patch2.inc
  98. @pause
  99. cls
  100.  
  101. :failed
  102.  
  103.